//定义返回的数据类型
export interface responseData {
  code: number;
  message: string;
  ok: boolean;
}
//验证码接口返回的数据类型
export interface responseCode extends responseData {
  data: string;
}
//登录用户携带的参数
export interface reqLoginData {
  phone: string;
  code: string;
}
//登录用户返回的数据参数
export interface responseLoginData extends responseData {
  token: string;
  name: string;
}
//登录用户返回的全部数据
export interface responseLoginDataAll extends responseData {
  data: responseLoginData;
}
//微信登录返回的ts类型
export interface WxLogin {
  appid: string; //应用唯一标识，在微信开放平台提交应用审核通过后获得
  scope: string;
  redirectUri: string;
  state: string;
}

//微信接口返回的ts类型
export interface WxLoginResponseData extends responseData {
  data: WxLogin;
}
//提交订单接口的返回ts数据类型
export interface responseOrderData extends responseData {
  data: number;
}
//获取订单的接口ts类型
export interface OdersInfo {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: 0;
  param: {
    orderStatusString: string;
  };
  userId: number;
  outTradeNo: string;
  hoscode: string;
  hosname: string;
  depcode: string;
  depname: string;
  scheduleId: string;
  title: string;
  reserveDate: string;
  reserveTime: number;
  patientId: number;
  patientName: string;
  patientPhone: string;
  hosRecordId: string;
  number: number;
  fetchTime: string;
  fetchAddress: string;
  amount: number;
  quitTime: string;
  orderStatus: 0;
}
//获取订单接口返回的全部数据类型
export interface responseOdersInfo extends responseData {
  data: OdersInfo;
}
//支付接口返回的信息
export interface WeiXinPay {
  codeUrl: string;
  orderId: number;
  totalFee: number;
  resultCode: string;
}
//支付接口返回的全部信息
export interface responseWeiXinPay extends responseData {
  data: WeiXinPay;
}
//查看支付状态的信息
export interface responsePayStatus extends responseData {
  data: boolean;
}
//返回的用户信息
export interface UserInfo {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {};
  openid: number;
  nickName: number;
  phone: string;
  name: "王xx";
  certificatesType: "10";
  certificatesNo: string;
  certificatesUrl: string;
  authStatus: number;
  status: number;
}
//用户接口返回的全部信息
export interface responseUserInfo extends responseData {
  data: UserInfo;
}
//证件类型
export interface CertificatesType {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {};
  parentId: number;
  name: string;
  value: string;
  dictCode: string;
  hasChildren: boolean;
}
//证件类型数组
export type CertificatesTypeArray = CertificatesType[];
//证件类型全部参数
export interface CertificatesTypeAll {
  data: CertificatesTypeArray;
}
//用户认证携带的参数
export interface CertificatesParam {
  certificatesNo: "string",
  certificatesType: "string",
  certificatesUrl: "string",
  name: "string",
}
//添加或者修改用户的接口信息
export interface AddOrUpdateUserParams {
  id?:string,
  name:string,
  certificatesType:string,
  certificatesNo:string,
  sex:number,
  birthdate:string,
  phone:string,
  isMarry:number,
  isInsure:number,
  address:string,
  addressSelected:string[],
  contactsName:string,
  contactsPhone:string,
  contactsCertificatesType:string,
  contactsCertificatesNo:string,
}
